package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.dao.ReportOrderTotalDayDao;
import com.yungu.swift.report.entity.ReportOrderTotalDay;
import com.yungu.swift.report.service.OrderTotalDayService;
import com.yungu.swift.utils.DateUtils;
import com.yungu.swift.utils.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class OrderTotalDayServiceImpl implements OrderTotalDayService {

    @Autowired
    private ReportOrderTotalDayDao orderTotalDayDao;

    @Override
    public ResponseData<List<ReportOrderTotalDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(orderTotalDayDao.queryIndex(reportParam));
    }

    @Override
    public ResponseData<ReportOrderTotalDay> getTotalInfo(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(orderTotalDayDao.getTotalInfo(reportParam));
    }

}
